#!/usr/bin/env python
from resource_management import *
import sys ,os
def jenkins_config():
    import params

    File(format("{conf_dir}/jenkins"),
         content=Template("jenkins.j2"),
         owner=params.jenkins_user,
         group=params.user_group
         )
def new_jenkins_conf():
    import params

    jenkins_conf=format("{conf_dir}/jenkins")
    if os.path.exists(jenkins_conf):
        os.remove(jenkins_conf)
    jenkins_config()